
//项目的启动方法
Ext.application({

    name:'stumanage',
    appFolder:'app',

    launch:function () {
        loginWindow();
    }

});

function loginWindow()
{
    var loginPanel=Ext.create('Ext.form.Panel',{
        layout:'form',
        items:[{
            xtype:'textfield',
            labelAlign: 'right',
            fieldLabel:'用户名',
            allowBlank:false,
            emptyText:'请输入用户名'
        },{
            xtype:'textfield',
            labelAlign: 'right',
            fieldLabel:'密&nbsp;&nbsp;&nbsp;码',
            inputType:'password',
            allowBlank: false,
            emptyText: '请输入密码'
        },{
            xtype:"checkbox",
            fieldLabel:'10天内免登录',
            hideLabel: true,
            boxLabel : '10天内免登录'
        }]
    });

    Ext.create('Ext.window.Window',{
        width:260,
        height:150,
        autoShow: true,
        modal:true,
        border:false,
        title:'登录',
        iconCls:'login-window',
        layout:'fit',
        items:[loginPanel],
        buttons:[{
            text:'确定',
            iconCls:'login-btn-sure',
            handler:function () {
                loginPanel.getForm().submit({

                });


            }
        },{
            iconCls:'login-btn-cancel',
            text:'重置',
            handler:function () {
                loginPanel.getForm().reset();
            }
        }]
    });
}